package md.mru.transfer.optimized.domain;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name = "documents", schema = "c##mru_optimized")
public class Document implements Serializable {

    @Id
    @Column(name = "id", unique = true, nullable = false, precision = 10, scale = 0)
    private long id;

    @Column(name = "document_type_id")
    private Long documentType;

    @Column(name = "doc_number", length = 100)
    private String number;

    @Temporal(TemporalType.DATE)
    @Column(name = "doc_date", length = 7)
    private Date issueDate;

    @Column(name = "birth_place", length = 150)
    private String birthPlace;

    @Column(name = "residence_visa", length = 150)
    private String residenceVisa;

    @Temporal(TemporalType.DATE)
    @Column(name = "birth_date", length = 7)
    private Date birthDate;

    @Column(name = "office", length = 30)
    private String office;

    @Column(name = "fsk", length = 30)
    private String fsk;

    @Column(name = "folder_id", precision = 10, scale = 0)
    private long folder;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public Long getDocumentType() {
        return documentType;
    }

    public void setDocumentType(Long documentType) {
        this.documentType = documentType;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public Date getIssueDate() {
        return issueDate;
    }

    public void setIssueDate(Date issueDate) {
        this.issueDate = issueDate;
    }

    public String getBirthPlace() {
        return birthPlace;
    }

    public void setBirthPlace(String birthPlace) {
        this.birthPlace = birthPlace;
    }

    public String getResidenceVisa() {
        return residenceVisa;
    }

    public void setResidenceVisa(String residenceVisa) {
        this.residenceVisa = residenceVisa;
    }

    public Date getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(Date birthDate) {
        this.birthDate = birthDate;
    }

    public String getOffice() {
        return office;
    }

    public void setOffice(String office) {
        this.office = office;
    }

    public String getFsk() {
        return fsk;
    }

    public void setFsk(String fsk) {
        this.fsk = fsk;
    }

    public long getFolder() {
        return folder;
    }

    public void setFolder(long folder) {
        this.folder = folder;
    }
}


